.app3 {
    display: flex;
    height: 100vh;
    background-color: var(--background-light);
  }
  
  .sidebar {
    width: 40px;
    background-color: var(--background-dark);
    padding: 10px 0;
    position: fixed;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
  }
  
  .letters {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .letter {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .letter:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
  }
  
  .letter.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
  }
  
  .patients {
    flex: 1;
    padding: 20px;
    padding-right: 50px;
    overflow-y: auto;
  }
  
  .patient {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .patient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .patient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
  }
  
  .patient:hover::after {
    transform: translateX(100%);
  }
  
  .avatar {
    margin-right: 15px;
    position: relative;
  }
  
  .avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
  }
  
  .patient:hover .avatar img {
    transform: scale(1.1);
  }
  
  .info {
    flex: 1;
  }
  
  .info h2 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
  }
  
  .info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
  }
  
  .status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    transition: transform 0.3s ease;
  }
  
  .status-badge.online {
    background-color: var(--success-color);
  }
  
  .status-badge.offline {
    background-color: var(--text-secondary);
  }
  
  .status-badge.busy {
    background-color: var(--warning-color);
  }
  
  .status-badge:hover {
    transform: scale(1.2);
  }
  
  /* 滚动条美化 */
  .patients::-webkit-scrollbar {
    width: 6px;
  }
  
  .patients::-webkit-scrollbar-track {
    background: var(--background-light);
  }
  
  .patients::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
  }
  
  .patients::-webkit-scrollbar-thumb:hover {
    background-color: #999;
  }
  
  /* 响应式布局 */
  @media screen and (max-width: 480px) {
    .sidebar {
      width: 30px;
    }
    
    .letter {
      width: 20px;
      height: 20px;
      font-size: 10px;
    }
    
    .patients {
      padding: 10px;
      padding-right: 40px;
    }
    
    .patient {
      padding: 10px;
    }
    
    .avatar img {
      width: 40px;
      height: 40px;
    }
  }

  .search-container {
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
  }
  
  .search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
  }
  
  .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
  }
  
  .search-input::placeholder {
    color: var(--text-secondary);
  }
  
  .last-visit {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* 添加更多响应式样式 */
  @media screen and (max-width: 480px) {
    .search-container {
      margin-bottom: 15px;
    }
    
    .search-input {
      padding: 8px 12px;
      font-size: 13px;
    }
    
    .last-visit {
      font-size: 11px;
    }
  }